
package com.hlkj.pay.app.merchant.ext.impl.lakala.dto.resp;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.util.json.JsonUtils;
import lombok.Data;

import java.util.List;

/**
 * @author HlpayTeam
 * @date 2024/12/11 10:07
 */
@Data
public class LakalaPayOrderH5Res {

    /**
     * pay_order_no : 21092211012001970631000488042 out_order_no :
     * LABS1632300253YDMG channel_id : 15 trans_merchant_no : 82216205947000G
     * trans_term_no : D0060389 merchant_no : 82216205947000G term_no : D0060389
     * order_status : 2 order_info : 24865454154 total_amount : 3300
     * order_create_time : 20210922164413 order_efficient_time : 20221208165845
     * order_trade_info_list :
     * [{"trade_no":"2021092251210203410010","log_No":"51210203410010","trade_type":"PAY","trade_status":"S","trade_amount":3300,"payer_amount":0,"user_id1":"","user_id2":"","busi_type":"ONLINE","trade_time":"2021092264452","acc_trade_no":"109221009853","payer_account_no":"","payer_name":"","payer_account_bank":"","acc_type":"99","pay_mode":"LKLAT"}]
     */

    private String pay_order_no;

    private String out_order_no;

    private String channel_id;

    private String trans_merchant_no;

    private String trans_term_no;

    private String merchant_no;

    private String term_no;

    private String order_status;

    private String order_info;

    private int total_amount;

    private String order_create_time;

    private String order_efficient_time;

    /**
     * trade_no : 2021092251210203410010 log_No : 51210203410010 trade_type : PAY
     * trade_status : S trade_amount : 3300 payer_amount : 0 user_id1 : user_id2 :
     * busi_type : ONLINE trade_time : 2021092264452 acc_trade_no : 109221009853
     * payer_account_no : payer_name : payer_account_bank : acc_type : 99 pay_mode :
     * LKLAT
     */

    private OrderTradeInfoListBean order_trade_info;
    private List<OrderTradeInfoListBean> order_trade_info_list;

    @Data
    public static class OrderTradeInfoListBean {

        private String trade_no;

        private String log_No;

        private String trade_type;

        private String trade_status;

        private Long trade_amount;

        private Long payer_amount;

        private String user_id1;

        private String user_id2;

        private String busi_type;

        private String trade_time;

        private String acc_trade_no;

        private String payer_account_no;

        private String payer_name;

        private String payer_account_bank;

        private String acc_type;

        private String pay_mode;

    }

    public static void main(String[] args) {
        String json="{\"channel_id\":\"95\",\"merchant_no\":\"82229007392000A\",\"order_create_time\":\"20241211164602\",\"order_efficient_time\":\"20241211171543\",\"order_info\":\"测试商品\",\"order_status\":\"2\",\"order_trade_info\":{\"acc_discount_amount\":\"\",\"acc_mdiscount_amount\":\"\",\"acc_other_discount_amount\":\"\",\"acc_settle_amount\":\"1\",\"acc_trade_no\":\"2024121122001448081424817223\",\"acc_type\":\"04\",\"busi_type\":\"SCPAY\",\"log_no\":\"66210517590803\",\"pay_mode\":\"ALIPAY\",\"payer_amount\":1,\"settle_merchant_no\":\"82229007392000A\",\"settle_term_no\":\"D9296381\",\"trade_amount\":1,\"trade_no\":\"2024121166210517590803\",\"trade_remark\":\"\",\"trade_status\":\"S\",\"trade_time\":\"20241211164651\",\"trade_type\":\"PAY\",\"user_id1\":\"cik***@gmail.com\",\"user_id2\":\"2088112628848080\"},\"out_order_no\":\"D20241211164543238105088\",\"pay_order_no\":\"24121111012001101011001701926\",\"term_no\":\"D9296381\",\"total_amount\":1,\"trans_merchant_no\":\"82229007392000A\",\"trans_term_no\":\"D9296381\"}";

        System.out.println(JsonUtils.parseObject(json,LakalaPayOrderH5Res.class));
    }
}
